﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using DTN.Core;
using Hanel.DTN.News;


public partial class Control_Home_CauTruyenCuocSong : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        CauTruyenCuocSong();
    }
    protected void CauTruyenCuocSong()
    {
        ItblContentManager obj = tblContentManager.CreateInstance();
        DataTable dt = obj.SelecttblContentDynamic_top("Top 1", "Status=1 and ChannelID=105", "ID desc");
        int id = int.Parse(dt.Rows[0]["ID"].ToString());
        DataTable dt2 = obj.SelecttblContentDynamic_top("Top 2", "Status=1 and ChannelID=105 and id<>" + id, "ID desc");

        //DataList1.DataSource = dt;
        //DataList1.DataBind();
        //DataList2.DataSource = dt2;
        //DataList2.DataBind();
    }
}